import request from '@/utils/request'


export function addDataModel(data) {
  return request({
    url: '/common/datamodel/add',
    method: 'post',
    data:data
  })
}
export function updateDataModel(data) {
  return request({
    url: '/common/datamodel/revise',
    method: 'post',
    data:data
  })
}
export function deleteDataModel(modelId) {
  return request({
    url: '/common/datamodel/delete',
    method: 'get',
    params: {modelId:modelId}
  })
}
export function getDataModelById(modelId) {
  return request({
    url: '/common/datamodel/getFeatures',
    method: 'get',
    params:  modelId
  })
}
export function getDataModels() {
  return request({
    url: '/common/datamodel/getModels',
    method: 'get',
  })
}
